<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class EacooTown extends Model
{
    //
    protected $table = 'eacoo_town';

    // 与乡关联
    public function down(){
        return $this -> hasOne(EacooVillage::class,'code','village_code');
    }
}
